# -*- coding: utf-8 -*-
from core.viewset import CustomModelViewSet
from apps.sys.models import LoginLog
from apps.sys.loginlog.serializers import *
from apps.sys.loginlog.filters import *


class LoginLogViewSet(CustomModelViewSet):
    """
    登录日志接口
    list:查询
    create:新增
    update:修改
    retrieve:单例
    destroy:删除
    """

    queryset = LoginLog.objects.all()
    serializer_class = LoginLogSerializer
    filterset_class = LoginLogFilterSet
